package backend

import (
	"awesomeProject1/pkg/router"
	"net/http"
)

// RouteGroup 内部调用接口
func RouteGroups(bs *backend) []router.RouteGroup {
	return []router.RouteGroup{
		TransferDetailsRouterGroup(bs),
	}
}

// TransferDetailsRouterGroup 外部路由群
func TransferDetailsRouterGroup(bs *backend) router.RouteGroup {
	return router.RouteGroup{
		Route: []router.Route{
			router.NewRoute(http.MethodGet, "/go", bs.run, "分析7月21号之后的转账概要数据，写入总行支行关系映射表"),
			router.NewRoute(http.MethodPost, "/checkDetailsToParam", bs.checkDetailsParameter, "检查转账详情接口中的To参数是否正确"),
			router.NewRoute(http.MethodPost, "/checkUpDetailsTooEarly", bs.checkUpDetailsTooEarly, "检查转账详情中的行业属性上链太早"),
		},
		Prefix:  "",
		Comment: "",
		Module:  "",
	}
}
